Skip to content

Conversation

@alex-spies
Copy link
Contributor

@alex-spies alex-spies commented Jan 12, 2024

A small exercise to see whether we can run ES|QL queries from unit or csv tests against actual Lucene indices.

  • Factor out query execution code from CsvTests into the new class TestQueryRunner.
  • Add OptimizerExecutabilityTests which executes an optimized plan against a Lucene index, using the actual EsPhysicalOperationProviders.

The latter uses MapperServiceTestCase.withLuceneIndex together with the fact that executing an ES|QL query requires

  • the optimized query,
  • physical operation providers, built from a search execution context (that's what we need withLuceneIndex for), and
  • index and enrich resolutions.

@alex-spies alex-spies reopened this Jun 13, 2024
@alex-spies alex-spies closed this Mar 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants